<!-- 导航URL -->
<div class="row wrapper border-bottom white-bg page-heading">
	<div class="col-md-12">
		<ol class="breadcrumb">
			<li><a>主页</a></li>
			<li><a>风控管理</a></li>
			<li class="active"><strong>黑名单管理</strong></li>
		</ol>
	</div>
</div>
<!-- 主要内容 -->
<div class="wrapper wrapper-content animated fadeIn" ng-app
	 ng-controller="blacklistQueryCtrl">
	<form class="form-horizontal" id="form1">
		<div class="row">
			<div class="col-lg-12">
				<div class="panel-body ibox float-e-margins">
					<div class="ibox-content">

						<div class="form-group">
							<label class="col-sm-1 control-label">黑名单类型：</label>
							<div class="col-sm-2">
								<select class="form-control" ng-model="info.rollType" ng-options="x.value as x.text for x in blacklistTypesAll"/>
							</div>

							<label class="col-sm-2 control-label">商户编号/身份证号/银行卡号/手机号：</label>
							<div class="col-sm-2">
								<input type="text" class="form-control" ng-model="info.rollNo">
								<input type="hidden" ng-model="info.rollBelong">
							</div>

							<label class="col-sm-1 control-label">状态：</label>
							<div class="col-sm-2">
								<select class="form-control" ng-model="info.rollStatus" ng-options="x.value as x.text for x in _rollStatus"/>
							</div>
						</div>

						<div class="form-group">
						     <label class="col-sm-1 control-label">创建时间：</label>
                                            <div class="col-sm-6">
                                                <input id="d5221" class="form-control" type="datetime" ng-model="info.sdate" onchange=""  style="width:auto;display:inline-block;"
                                                       onFocus="var d5667=$dp.$('d5222');WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM-dd HH:mm:ss',onpicked:function(){d5222.focus();},maxDate:'#F{$dp.$D(\'d5222\')||\'%y-%M-%d\'}'})"/>
                                                ~
                                                <input id="d5222" class="form-control" type="datetime"  ng-model="info.edate" onchange=""  style="width:auto;display:inline-block;"
                                                       onFocus="WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'d5221\')}',maxDate:'%y-%M-%d 23:59:59'})"/>
                              </div>
							<label class="col-sm-1 control-label">创建人：</label>
							<div class="col-sm-2">
								<input type="text" class="form-control" ng-model="info.userName">
							</div>
						</div>


						<div class="form-group">
							<div class="col-lg-12">
								<label class="col-sm-1 control-label"></label>
								<button class="btn btn-primary6 btn-mr20" type="button" ng-click="query()">查询</button>
								<button class="btn btn-primary3 btn-mr20" type="button" ng-click="reset()">清空</button>
								<a class="btn btn-primary5 btn-mr20" ng-show="hasPermit('blackList.insert')" type="button" ui-sref="risk.blacklistAdd">新增</a>
								<button class="btn btn-primary3 btn-primary12" ng-show="hasPermit('blackList.deleteBatch')" type="button" ng-click="delBatch()">批量删除</button>
								<button class="btn btn-primary7" type="button"  ng-click="exportInfo()">导出</button>
								<button class="btn btn-new" ng-show="hasPermit('blackList.openBatch')" type="button" ng-click="openBatch()">批量打开</button>
								<!-- ng-show="hasPermit('riskRoll.export')" -->
								<a class="btn btn-new btn-rounded " ng-show="hasPermit('risk.blacklistimport')" style="width:120px; padding:7px 0;" type="button" ui-sref="risk.blacklistimport">批量导入</a>
							</div>

						</div>
						<div class="form-group">
							<div ui-grid="blacklistGrid" ui-grid-pagination ui-grid-selection ui-grid-resize-columns ui-grid-pinning class="grid"></div>
						</div>

					</div>
				</div>
			</div>
		</div>

		<!--黑名单日志-->
		<div id="showLogDiv" class="modal fade"  role="dialog">
			<div class="modal-dialog" style="width: 900px">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal">
							&times;</button>
						<h3 class="modal-title">黑名单操作日志</h3>
					</div>
					<!--------<div ui-grid="showLogGrid" ui-grid-pagination ui-grid-resize-columns ui-grid-pinning class="grid" style="width:850px;"></div>-------->
					<div class="row">
						<div class="col-lg-12">
							<div class="panel-body ibox float-e-margins">
								<div class="ibox-content">
									<div class="form-group">
										<div ui-grid="showLogGrid" ui-grid-pagination ui-grid-resize-columns ui-grid-pinning class="gridStyle auditDetail" style="width:850px;"></div>
									</div>
								</div>
							</div>
						</div>
					</div>
					<!--------<div class="gridStyle auditDetail" style="width:850px;" ui-grid-pagination ui-grid-resize-columns ui-grid-pinning ui-grid="showLogGrid"/>-------->
				</div>
			</div>
		</div>

		<!--自定义状态更改弹出框-->
		<div id="updateStatusModal" class="modal fade" tabindex="-1" role="dialog">
			<div class="modal-dialog" style="height:200px;width: 560px">
				<div class="modal-content" >
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal">
							&times;
						</button>
						<h3 class="modal-title"><span id="myTitle"></span></h3>
					</div>
					<div class="modal-body" style="height:150px;width: 560px">
						<div class="form-group control-label" style="overflow:hidden; padding-bottom:0px;">
							<label class="col-sm-2 control-label" style="text-align:right;">备注：</label>
							<div class="col-sm-8">
								<textarea class="form-control" name="handleRemark" ng-model="handleRemark" style="height:100px;" ng-maxlength="300"></textarea>
							</div>

						</div>
						<div class="form-group control-label" style="overflow:hidden; padding-bottom:0px;">
							<label class="col-sm-4 control-label"></label>
							<div class="col-sm-8">
								<div style="text-align:left" class="req_mesg"
									 ng-show="horizontal.handleRemark.$dirty &&  horizontal.handleRemark.$invalid || horizontal.handleRemark.$error.maxlength">
									备注限制为300位汉字,字母,空格,或者数字</div>
							</div>
						</div>
						<input type="hidden" class="form-control" ng-model="id">
					</div>
					<div class="modal-footer" style="height:60px;width: 560px; text-align: center;">
						<button type="button" ng-click="updateHandleStatusCommit()" ng-disabled="horizontal.$invalid || submitting " class="btn btn-primary btn-mr20">确定</button>
						<button type="button" ng-click="updateHandleStatusColse()" ng-disabled="submitting" class="btn btn-primary11">关闭</button>
					</div>

				</div>
			</div>
		</div>
		<!---->
	</form>


	<!-- 模态框（Modal）新增终端 -->
	<div id="addblacklist" class="modal fade" tabindex="-1" role="dialog">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						&times;
					</button>
					<h3 class="modal-title">添加黑名单号码</h3>
				</div>
				<div class="modal-body">
					<form id="form1">
						<div class="form-group">
							<label class="col-sm-4 control-label">黑名单编号：</label>
							<input disabled="disabled" type="text" class="form-control" ng-model="roll.rollNo">
						</div>
						<div class="form-group">
							<label class="col-sm-4 control-label">黑名单类型：</label>
							<select disabled="disabled" class="form-control" ng-model="roll.rollType" ng-options="x.value as x.text for x in blacklistTypesAll"/>
						</div>
						<div class="form-group">
							<label class="col-sm-4 control-label">黑名单号码：</label>
							<input type="text" class="form-control" ng-model="roll.rollNumber">
						</div>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" ng-click="addblacklistNo()" ng-disabled="submitting" class="btn btn-primary">确定</button>

				</div>
			</div>
		</div>
	</div>
</div>